/**
 * The Address entity.
 *
 * @author    
 *
 *
 */
package vamp;
class Address {
    static mapping = {
         table 'address'
         // version is set to false, because this isn't available by default for legacy databases
         version false
         id generator:'identity', column:'iddadress'
         gpslocation column:'idgpslocation'
    }
    String line1
    String line2
    String line3
    String zipcode
    String city
    String country
    Gpslocation gpslocation

    static constraints = {
        line1(blank: false)
        line2()
        line3()
        zipcode(blank: false)
        city(blank: false)
        country(blank: false)
        gpslocation()
    }
    String toString() {
        return "${id}"
    }
}
